package com.tsl.prevention.modules.user.service.impl;

import com.tsl.prevention.modules.user.entity.Servicerecord;
import com.tsl.prevention.modules.user.dao.ServicerecordMapper;
import com.tsl.prevention.modules.user.service.IServicerecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lionel
 * @since 2021-03-24
 */
@Service
public class ServicerecordServiceImpl extends ServiceImpl<ServicerecordMapper, Servicerecord> implements IServicerecordService {
    @Autowired
    private ServicerecordMapper servicerecordMapper;


    @Override
    public List<HashMap<String, String>> getList(String openId,String state) {
        return servicerecordMapper.getList(openId,state);
    }

    @Override
    public HashMap<String, String> getRecord(String id) {
        return servicerecordMapper.getRecord(id);
    }
}
